<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Site Cordec | {% block subtitle %}{% endblock subtitle %}</title>
        <link rel="shortcut icon" href="{{ MEDIA_URL }}images/favicon.ico" type="image/x-icon">
        <link type="text/css" href="{{ MEDIA_URL }}css/stylo.css" rel="stylesheet" />
        <link type="text/css" href="{{ MEDIA_URL }}css/skins/tango/skin.css" rel="stylesheet" />
        <!--<link href='http://fonts.googleapis.com/css?family=Goudy+Bookletter+1911' rel='stylesheet' type='text/css'>-->
       
		<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-1.4.2.min.js"></script>
		 <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.cycle.all.min.js"></script>
		<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.jcarousel.min.js"></script>
		<script type="text/javascript" src="{{ MEDIA_URL }}js/gerais.js"></script>
		{% block header %}{% endblock header %}
		<script type="text/javascript">
			jQuery.noConflict();

            function buscar(){
                if(jQuery("#s").val()!=""){
                     location.href = "/noticia/buscar/"+jQuery("#s").val();
                }else{
                    alert("O campo de busca não pode ser vazio");
                }
            }


			jQuery(function(){
				
				jQuery('#carroselProgramas').jcarousel({ visible: 4});
				
				//dinamica de busca
				jQuery('#buttonSearch').click(function(){
                    buscar();
				});

                jQuery('#s').keypress(function(e){
                    if(e.keyCode == 13){
                       buscar();
                       e.preventDefault(e);
                    }
                });
				
				/*
				jQuery('.home-rotator-container').cycle({
					fx: 'fade',
                    timeout: '5000',
                    speed: '400',
                    pager: '#home-rotator-pager',
                    pagerEvent: 'mouseover',
                    pauseOnPagerHover: 'true',
                    allowPagerClickBubble: 'true', 
				});*/
				
			});

            //google analytics
            var _gaq = _gaq || [];
              _gaq.push(['_setAccount', 'UA-24531853-1']);
              _gaq.push(['_trackPageview']);

              (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
              })();
            //google analytics



		</script>
               
	</head>
	<body>
           		{% include "topo.html" %}
                
                {% include "banner.html" %}
             
                <div id="page">
                	
                	<div id="content">
                		{% block conteudo %}
                		{% endblock conteudo %}
                	</div><!-- end content -->
                	
                	{% include "sidebar.html" %}
                    
                </div><!-- end page -->

              {% include "footer.html" %}
	</body>
</html>



